package com.cpi.cornpp.exchangerateversion.view;

import java.util.ArrayList;

public class ExchangeRateGroupView {

	private String currency;
	
	private ArrayList exchangeRateVersionViews;

	public ExchangeRateGroupView() {
		this.exchangeRateVersionViews = new ArrayList(0);
	}
	
	public ArrayList getExchangeRateVersionViews() {
		return exchangeRateVersionViews;
	}

	public void setExchangeRateVersionViews(ArrayList exchangeRateVersionViews) {
		this.exchangeRateVersionViews = exchangeRateVersionViews;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}
	
	public boolean equals(Object obj) {
		if(!(obj instanceof ExchangeRateGroupView)){
			return false;
		}
		ExchangeRateGroupView ergv = (ExchangeRateGroupView)obj;		
		return ergv.getCurrency().equals(this.getCurrency());
	}
}
